<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use app\system\middleware\Auth;
use think\facade\Route;

// 登录
Route::post('/login', 'login/login');//->middleware(\app\system\middleware\Auth::class);

Route::post('/logout', 'login/logout');//->middleware(\app\system\middleware\Auth::class);

// 获取用户信息
Route::get('/getInfo', 'login/getInfo')->middleware(Auth::class);;

// 获取路由
Route::get('/getRouters', 'login/getRouters')->middleware(Auth::class);;
